package com.second.statistics.controller;

import com.second.common.pojo.R;
import com.second.statistics.service.SysOperLogService;
import com.second.statistics.service.TbOrderService;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @program: clms-second
 * @description:
 * @author: 赵博岩
 * @create: 2021-07-24 16:25
 **/
@RestController
@RequestMapping("statistics")
public class TbOrderController {
    @Resource
    private TbOrderService tbOrderService;
    @Resource
    private SysOperLogService sysOperLogService;
    @PostMapping ("/selectTbOrder/{value2}")
    @ApiModelProperty(value = "收入统计")
    public R TbOrder(@PathVariable("value2") String ymonth){

        return tbOrderService.TbOrder(ymonth);
    }

    @PostMapping("/logdata/{value3}")
    @ApiModelProperty(value = "查询调用操作记录")
    public R getudata(@PathVariable("value3") String years) {

        return sysOperLogService.SysOperLog(years);
    }


    @PostMapping("/operatortype/{value3}")
    @ApiModelProperty(value = "查询操作类别")
    public R OperaType(@PathVariable("value3")String years){

        return sysOperLogService.OperaType(years);
    }
}
